/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package smallsimulator;

/**
 *
 * @author Old
 */
public class spliterInfo implements java.io.Serializable {
    
    private int target1;
    private int target2;
    private float chance1;

    public spliterInfo() {
        this.target1 = 0;
        this.target2 = 0;
        this.chance1 = 0.5f;
    }

    public spliterInfo(int target1, int target2, float chance1) {
        this.target1 = target1;
        this.target2 = target2;
        this.chance1 = chance1;
    }

    public float getChance1() {
        return chance1;
    }

    public void setChance1(float chance1) {
        this.chance1 = chance1;
    }

    @Override
    public String toString() {
        return "spliterInfo{" + "target1=" + target1 + ", target2=" + target2 + ", chance1=" + chance1 + '}';
    }

    public int getTarget1() {
        return target1;
    }

    public void setTarget1(int target1) {
        this.target1 = target1;
    }

    public int getTarget2() {
        return target2;
    }

    public void setTarget2(int target2) {
        this.target2 = target2;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final spliterInfo other = (spliterInfo) obj;
        if (this.target1 != other.target1) {
            return false;
        }
        if (this.target2 != other.target2) {
            return false;
        }
        if (Float.floatToIntBits(this.chance1) != Float.floatToIntBits(other.chance1)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        return hash;
    }
    
    
}
